﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebSite.cn
{
    public partial class exitCard : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(Request.QueryString["cid"])
                && base.LoginUserMember.DicUserCardList.ContainsKey(int.Parse(Request.QueryString["cid"])))
            {
                try
                {
                    base.LoginUserMember.DicUserCardList.Remove(int.Parse(Request.QueryString["cid"]));
                    base.Response.Write("<script>alert('删除成功！')</script>");
                    base.Response.Write("<script language=javascript>window.location.href='ProfessionArea.aspx?sid=2';</script>");
                    base.Response.End();
                }
                catch
                {
                    base.Response.Write("<script>alert('删除失败！')</script>");
                    base.Response.Write("<script language=javascript>window.location.href='ProfessionArea.aspx?sid=2';</script>");
                    base.Response.End();
                }

            }

        }
    }
}